'use strict';

const Controller = require('egg').Controller;

class SearchController extends Controller {
  async index() {
    const {ctx} = this
    const {keyword} = ctx.query
    var res = await ctx.service.movie.getMovieDetailOrSearch({keyword})
    ctx.body = {
        status:200,
        msg:"搜索结果",
        res
    }
  }
}

module.exports = SearchController;
